function! api#tagbar#init() abort
     if !exists('g:loaded_tagbar')
         try
             packadd tagbar
             let g:loaded_tagbar = 1
         catch /.*/
             echoerr v:exception
         endtry 
     endif    
     if exists('g:loaded_tagbar') && g:loaded_tagbar
         let g:toggle_keymap = get(g:, "toggle_keymap", { "name": "+toggle" })
         let g:toggle_keymap.b = [ "Tagbar", "tagbar"] 
         let g:space_keymap = get(g:, "space_keymap", { "name": "+space" })
         let g:space_keymap.t = g:toggle_keymap
         nnoremap <F2>  :Tagbar<cr>
     endif    
endfunction 

